package cc.lj.internal.api.merchant.api.fallback;

import cc.lj.internal.api.merchant.api.PropertyRelationFeignService;
import cc.lj.internal.api.merchant.dto.PropertyRelatonApiDTO;
import cc.lj.internal.api.merchant.query.PropertyRelationApiQuery;
import cc.lj.internal.core.http.HttpResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 展位区域熔断处理类
 * @author liangxifeng
 * @date 2021-12-31
 */
@Component
public class PropertyRelationFeignFallBackService implements PropertyRelationFeignService {

    @Override
    public HttpResult<List<PropertyRelatonApiDTO>> showAreaList(PropertyRelationApiQuery propertyRelationQuery) {
        HttpResult<List<PropertyRelatonApiDTO>>ret = new HttpResult<>(HttpResult.SERVICE_FUSING.getCode(), HttpResult.SERVICE_FUSING.getMessage());
        ret.setData(null);
        return ret;
    }
}
